#!/bin/bash
rm -f FacebookMessenger.apk &&apktool b -f FacebookMessenger FacebookMessenger_unsigned.apk && "$JAVA_HOME"/bin/jarsigner -sigalg MD5withRSA -digestalg SHA1 -verbose -keystore ~/.android/debug.keystore -storepass android -keypass android  -signedjar FacebookMessenger.apk FacebookMessenger_unsigned.apk androiddebugkey &&  adb install FacebookMessenger.apk 
